package com.hc.page;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@EnableFeignClients //开启Feign远程服务调用
//@EnableCircuitBreaker //开启Hystrix熔断功能
@EnableDiscoveryClient
@SpringBootApplication
public class PageApplication {

    public static void main(String[] args) {
        SpringApplication.run(PageApplication.class,args);
    }


//    @LoadBalanced //开启Ribbon负载均衡功能
//    @Bean
//    public RestTemplate restTemplate(){
//        return new RestTemplate();
//    }
}
